
var express = require('express')
var Histories = require('../controller/history')
var router = express.Router()

router.get('/', Histories.getAll);
router.get('/:id', Histories.get);
router.get('/finance/:financeId', Histories.getByFinanceId);
router.put('/:id', Histories.put);
router.post('/', Histories.post);
router.delete('/:id', Histories.delete);

module.exports = router